package com.qf.config;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;

import java.io.IOException;

/**
 * @author bss
 * @version V1.0
 * @Project maven
 * @Package com.qf.config
 * @Description:
 * @Date 2022/9/30 17:21
 */
public class MyJsonSeriaizee extends JsonSerializer<Double> {
    @Override
    public void serialize(Double value, JsonGenerator gen, SerializerProvider serializers) throws IOException {
        gen.writeString("$"+value);
    }
}
